Package-level declarations

Types

Link copied to clipboard
data class BattleConfig(var duration: Int = 0, var needResponse: Boolean = false, var extensionInfo: String = "")

PK configuration information set when sending PK request

Link copied to clipboard

Reason for users in PK to receive PK ended notification

Link copied to clipboard
data class BattleInfo(val battleID: String = "", val config: BattleConfig = BattleConfig(), val startTime: Long = 0, val endTime: Long = 0)

PK information

Link copied to clipboard
abstract class BattleListener

Callback events related to PK.

Link copied to clipboard

PK request callback

Link copied to clipboard
data class BattleState(var currentBattleInfo: StateFlow<BattleInfo?>, var battleUsers: StateFlow<List<SeatUserInfo>>, var battleScore: StateFlow<Map<String, Int>>)

PK related state data provided by BattleStore.

Link copied to clipboard
abstract class BattleStore

Anchor PK management class

Link copied to clipboard
data class CoGuestState(val connected: StateFlow<List<SeatUserInfo>>, val invitees: StateFlow<List<LiveUserInfo>>, val applicants: StateFlow<List<LiveUserInfo>>, val candidates: StateFlow<List<LiveUserInfo>>)

Co-hosting related state data provided by CoGuestStore

Link copied to clipboard
abstract class CoGuestStore

Audience co-hosting management class

Link copied to clipboard

Connection layout template

Link copied to clipboard
abstract class CoHostListener

Callback events for connection requests.

Link copied to clipboard
data class CoHostState(val coHostStatus: StateFlow<CoHostStatus>, val connected: StateFlow<List<SeatUserInfo>>, val invitees: StateFlow<List<SeatUserInfo>>, val applicant: StateFlow<SeatUserInfo?>, candidates: StateFlow<List<SeatUserInfo>>)

Cross-room connection related state data provided by CoHostStore

Link copied to clipboard

Cross-room connection status of current user

Link copied to clipboard
abstract class CoHostStore

Anchor connection management class

Link copied to clipboard

Device control policy

Link copied to clipboard
abstract class GuestListener

Callback events received by audience side

Link copied to clipboard
abstract class HostListener

Callback events received by anchor side

Link copied to clipboard
abstract class LikeListener

Like event, used to receive like dynamics in live rooms/voice chat rooms.

Link copied to clipboard
data class LikeState(val totalLikeCount: StateFlow<Long>)

Like state, used to display and subscribe to like information in live rooms/voice chat rooms.

Link copied to clipboard
abstract class LikeStore

Like management class, used to handle like-related business logic in live rooms/voice chat rooms.

Link copied to clipboard
abstract class LiveAudienceListener

Live audience event

Link copied to clipboard
data class LiveAudienceState(val audienceList: StateFlow<List<LiveUserInfo>>, val audienceCount: StateFlow<Int>)

Live audience state

Link copied to clipboard
abstract class LiveAudienceStore

Live audience management class, used to manage audience list, permission settings and other related business.

Link copied to clipboard
data class LiveCanvas(var w: Int = 0, var h: Int = 0, var templateID: Int = 600)

Live canvas

Link copied to clipboard

Live ended reason.

Link copied to clipboard
data class LiveInfo(var liveID: String = "", var liveName: String = "", var notice: String = "", var isMessageDisable: Boolean = false, var isPublicVisible: Boolean = true, var isSeatEnabled: Boolean = true, var keepOwnerOnSeat: Boolean = false, var maxSeatCount: Int = 0, var seatMode: TakeSeatMode = TakeSeatMode.APPLY, var seatLayoutTemplateID: Int = 600, var coverURL: String = "", var backgroundURL: String = "", var categoryList: List<Int> = emptyList(), var activityStatus: Int = 0, val liveOwner: LiveUserInfo = LiveUserInfo(), val createTime: Long = 0, var totalViewerCount: Int = 0, var isGiftEnabled: Boolean = true, var metaData: Map<String, String> = emptyMap())

Live information

Link copied to clipboard

Metadata completion callback closure.

Link copied to clipboard

Reason for being kicked out of live room.

Link copied to clipboard
abstract class LiveListListener

Live list event

Link copied to clipboard
data class LiveListState(val liveList: StateFlow<List<LiveInfo>>, val liveListCursor: StateFlow<String>, val currentLive: StateFlow<LiveInfo>)

Live list state

Link copied to clipboard
abstract class LiveListStore

Live room list management class, used to manage live room related business.

Link copied to clipboard
abstract class LiveSeatListener

Seat related callback events.

Link copied to clipboard
data class LiveSeatState(val seatList: StateFlow<List<SeatInfo>>, val canvas: StateFlow<LiveCanvas>, val speakingUsers: StateFlow<MutableMap<String, Int>>)

Seat state data provided by LiveSeatStore.

Link copied to clipboard
abstract class LiveSeatStore

Live seat management class

Link copied to clipboard
data class LiveSummaryData(var totalDuration: Long = 0, var totalViewers: Int = 0, var totalGiftsSent: Int = 0, var totalGiftUniqueSenders: Int = 0, var totalGiftCoins: Int = 0, var totalLikesReceived: Int = 0, var totalMessageSent: Int = 0)
Link copied to clipboard
data class LiveSummaryState(val summaryData: StateFlow<LiveSummaryData>)
Link copied to clipboard
abstract class LiveSummaryStore
Link copied to clipboard
data class LiveUserInfo(var userID: String = "", var userName: String = "", var avatarURL: String = "")

Live user information

Link copied to clipboard
Link copied to clipboard

Move seat policy

Link copied to clipboard

Reason for no response to co-hosting invitation sent by anchor or co-hosting request initiated by audience

Link copied to clipboard
data class RegionInfo(var x: Int = 0, var y: Int = 0, var w: Int = 0, var h: Int = 0, var zorder: Int = 0)

Seat view coordinate information

Link copied to clipboard
enum Role : Enum<Role>

User role.

Link copied to clipboard
data class SeatInfo(var index: Int = 0, var isLocked: Boolean = false, var userInfo: SeatUserInfo = SeatUserInfo(), var region: RegionInfo = RegionInfo())

Seat information

Link copied to clipboard
data class SeatUserInfo(val userID: String = "", val userName: String = "", val avatarURL: String = "", val role: Role = Role.GENERAL_USER, val liveID: String = "", val microphoneStatus: DeviceStatus = DeviceStatus.OFF, val allowOpenMicrophone: Boolean = true, val cameraStatus: DeviceStatus = DeviceStatus.OFF, val allowOpenCamera: Boolean = true)

Seat user information

Link copied to clipboard
Link copied to clipboard

Take seat mode.